package com.chinairi.mall.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.chinairi.common.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableField;

/**
 * <p>
 * 用户账号信息表
 * </p>
 *
 * @author 董志涵
 * @since 2020-08-17
 */
@TableName("SYS_USER_LOGIN")
public class SysUserLogin extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 主键标识(uuid)
     */
    @TableId("USER_ID")
    private String userId;

    /**
     * 登录名(用户登录名称)
     */
    @TableField("LOGIN_NM")
    private String loginNm;

    /**
     * 登录密码(MD5加密)
     */
    @TableField("LOGIN_PWD")
    private String loginPwd;

    /**
     * 登录邮箱
     */
    @TableField("LOGIN_EMAIL")
    private String loginEmail;

    /**
     * 用户状态(0表示不激活，1表示激活)
     */
    @TableField("IS_ACTIVE")
    private String isActive;

    /**
     * 显示名(在页面上显示的用户名)
     */
    @TableField("DISPLAY_NM")
    private String displayNm;

    /**
     * 账号类型(1 管理员 2.普通用户 999.超级管理员)
     */
    @TableField("ACCOUNT_TYPE")
    private String accountType;

    /**
     * 登录状态（0：正常，1：锁定 ）
     */
    @TableField("LOGIN_STATE")
    private String loginState;

    /**
     * 登录状态（0：正常，1：锁定 ）
     */
    @TableField("USER_STATE")
    private String userState;

    /**
     * 最后登录时间
     */
    @TableField("LOGIN_TIME")
    private Date loginTime;

    /**
     * 登录次数 
     */
    @TableField("LOGIN_NUM")
    private BigDecimal loginNum;

    /**
     * 登录密码修改时间,默认为当前时间
     */
    @TableField("LOGIN_PWD_UPT_TIME")
    private Date loginPwdUptTime;

    /**
     * 创建人
     */
    @TableField("CREATE_USER")
    private String createUser;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private Date createTime;

    /**
     * 修改人
     */
    @TableField("UPDATE_USER")
    private String updateUser;

    /**
     * 修改时间
     */
    @TableField("UPDATE_TIME")
    private Date updateTime;

    /**
     * 审核人
     */
    @TableField("APPROVE_USER")
    private String approveUser;

    /**
     * 审核时间
     */
    @TableField("APPROVE_TIME")
    private Date approveTime;

    /**
     * 审核状态
     */
    @TableField("APPROVE_STATUS")
    private String approveStatus;

    /**
     * 机构代码
     */
    @TableField("ORG_CODE")
    private String orgCode;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getLoginNm() {
        return loginNm;
    }

    public void setLoginNm(String loginNm) {
        this.loginNm = loginNm;
    }
    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
    }
    public String getLoginEmail() {
        return loginEmail;
    }

    public void setLoginEmail(String loginEmail) {
        this.loginEmail = loginEmail;
    }
    public String getIsActive() {
        return isActive;
    }

    public void setIsActive(String isActive) {
        this.isActive = isActive;
    }
    public String getDisplayNm() {
        return displayNm;
    }

    public void setDisplayNm(String displayNm) {
        this.displayNm = displayNm;
    }
    public String getAccountType() {
        return accountType;
    }

    public void setAccountType(String accountType) {
        this.accountType = accountType;
    }
    public String getUserState() {
        return userState;
    }

    public String getLoginState() {
        return loginState;
    }

    public void setLoginState(String loginState) {
        this.loginState = loginState;
    }

    public void setUserState(String userState) {
        this.userState = userState;
    }
    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }
    public BigDecimal getLoginNum() {
        return loginNum;
    }

    public void setLoginNum(BigDecimal loginNum) {
        this.loginNum = loginNum;
    }
    public Date getLoginPwdUptTime() {
        return loginPwdUptTime;
    }

    public void setLoginPwdUptTime(Date loginPwdUptTime) {
        this.loginPwdUptTime = loginPwdUptTime;
    }
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    public String getApproveUser() {
        return approveUser;
    }

    public void setApproveUser(String approveUser) {
        this.approveUser = approveUser;
    }
    public Date getApproveTime() {
        return approveTime;
    }

    public void setApproveTime(Date approveTime) {
        this.approveTime = approveTime;
    }
    public String getApproveStatus() {
        return approveStatus;
    }

    public void setApproveStatus(String approveStatus) {
        this.approveStatus = approveStatus;
    }
    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    @Override
    public String toString() {
        return "SysUserLogin{" +
            "userId=" + userId +
            ", loginNm=" + loginNm +
            ", loginPwd=" + loginPwd +
            ", loginEmail=" + loginEmail +
            ", isActive=" + isActive +
            ", displayNm=" + displayNm +
            ", accountType=" + accountType +
            ", userState=" + userState +
            ", loginTime=" + loginTime +
            ", loginNum=" + loginNum +
            ", loginPwdUptTime=" + loginPwdUptTime +
            ", createUser=" + createUser +
            ", createTime=" + createTime +
            ", updateUser=" + updateUser +
            ", updateTime=" + updateTime +
            ", approveUser=" + approveUser +
            ", approveTime=" + approveTime +
            ", approveStatus=" + approveStatus +
            ", orgCode=" + orgCode +
        "}";
    }
}
